// @ts-ignore
import axios from "@/http/index";

type DetailType = {
  csrf_token: string;
  __timestamp: number;
  id: number;
};
//发送详情页请求
export function getDetail(data: DetailType) {
  return axios({
    url: "/item/detail.json",
    method: "get",
    params: data,
  });
}
//发送详情页推荐img请求
export function getWapitem(data: { itemId: number }) {
  return axios({
    url: "/xhr/wapitem/hot.json",
    method: "post",
    data,
  });
}

// export function testPdd(data) {
//   return axios({
//     method: "post",
//     url: "https://gw-api.pinduoduo.com/api/router/",
//     headers: {
//       "User-Agent": "Apifox/1.0.0 (https://www.apifox.cn)",
//       "Content-Type": "application/json",
//     },
//     data: data,
//   });
// }
